<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>单位管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<%@ include file="/html/custom/header.jsp"%>

		<link type="text/css" href="<%=basePath%>/html/css/gm/user.css"
			rel="stylesheet" />
		<style>
		.td-op{width: 280px;}
		</style>	
		<script type="text/javascript" src="<%=basePath%>html/js/swss.dept.js"></script>
	</head>

	<body>
		<!-- 导航 -->
		<s:action name="showTopNav" executeResult="true" namespace="/user"></s:action> 
		
		<!-- 删除相关 -->
		<%@ include file="/html/custom/formDel.jsp"%>
		<div id="content">
			<div class="toolbar">
				<%@ include file="/html/custom/pagination.jsp"%>
				<span id="btnset" class="btnset"><a id="btnAddData" href="#">新增单位</a><a id="btnQueryData" href="#">条件筛选</a>
				</span>
				
			</div>
			<div class="datagird">

				<table class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>
								<a id="th_deptNo" href="#">部门编号<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_deptName">
								<a id="th_deptName" href="#">部门名称<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_deptStName">
								<a id="th_deptStName" href="#">部门简称<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_deptStCode">
								<a id="th_deptStCode" href="#">部门简码<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_createDate">
								<a id="th_createDate" href="#">建立年份<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_deptNature">
								<a id="th_deptNature" href="#">单位性质<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_useArrow">
								<a id="th_useArrow" href="#">使用方向<span class="ui-icon"></span>
								</a>
							</th>
							<th id="th_fundsAcc">
								<a id="th_fundsAcc" href="#">经费来源<span class="ui-icon"></span>
								</a>
							</th>
							
							<th class="td-op">
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="#request.pagination.result">
							<tr>

								<td>
									<s:property value="deptNo" />
								</td>
								<td>
									<s:property value="deptName" />
								</td>
								<td>
									<s:property value="deptStName" />
								</td>
								<td>
									<s:property value="deptStCode" />
								</td>
								<td>
									<s:property value="createDate" />
								</td>
								<td>
								<s:iterator value="#request.deptNatureList">
								<s:if test="fieldName4==deptNature">
								<s:property value="txt"/>
								</s:if>
								</s:iterator>
								</td>
								<td>
								<s:iterator value="#request.useArrowList">
								<s:if test="fieldName4==useArrow">
								<s:property value="txt"/>
								</s:if>
								</s:iterator>
								</td>
								<td>
								<s:iterator value="#request.fingSubList">
								 <s:if test="fieldName4==fundsAcc">
								  <s:property value="txt" />
								 </s:if>
								</s:iterator>
									
								</td>
								<td>
									<a class="btn-form" id="btnDel_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-circle-close"></span>删除</a>
									<a class="btn-form" id="btnUpdate_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>修改</a>
								</td>

							</tr>
						</s:iterator>


					</tbody>
				</table>
			</div>
			<div class="toolbar">
				<%@ include file="/html/custom/pagination.jsp"%>

			</div>


			<div id="loading"></div>
			<div id="mask"></div>
			<div id="msg"></div>
	</body>
</html>
